package priv.yiyuan.example.design.device;

/**
 * 音响
 * <p>
 * 桥接模式(具体实现者)
 */
public class SpeakerSystem implements PlaybackDevice {

    private String name;

    public SpeakerSystem(String name) {
        this.name = name;
    }

    @Override
    public void play(String mediaType, String content) {
        System.out.println(name + " 音响播放 " + mediaType + ": " + content);
    }

    @Override
    public void stop() {
        System.out.println(name + " 音响停止播放. ");
    }
}
